package com.hxd.mall.module.usercenter.invitataion

import com.hxd.mall.network.base.BaseRequest
import com.hxd.mall.network.service.ManagerFunctionApi.mIMeFunctionApi
import com.hxd.mall.utils.open.ToastUtil
import javax.inject.Inject

/**
 * @author zhaoyong
 * @description:
 * @date :2019/7/17 11:08 AM
 */
class InvivationPresenter @Inject constructor(var mView: IInvivationView) : IInvitationPresenter {

    override fun getData() {
        BaseRequest.request(mIMeFunctionApi.posterPage, mView, {
            mView.showData(it)
        }, {
            ToastUtil.showToast(it.msg ?: "")
        })
    }

    override fun getVersionInfo() {
    }

}